package com.food.mapping;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.food.entity.po.FoodApiGd;
import com.food.entity.po.FoodApiBaidu;
import com.food.entity.po.FoodApiPhoto;
import com.food.entity.po.FoodApiTx;
import com.food.entity.vo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author : 港某
 * @date : 2021/1/8 14:31
 */
@Mapper
public interface FoodShopMapper extends BaseMapper<Object> {

    Date getDatabaseTime();

    void deleteFoodShop();

    void insertFoodShop(FoodApiGd foodApiGd);

    void deleteFoodShopBaidu();

    void insertFoodShopBaidu(FoodApiBaidu foodApiBaidu);

    void deleteFoodShopTx();

    void insertFoodShopTx(FoodApiTx foodApiTx);

    void insertFoodShopPhoto(FoodApiPhoto foodApiPhoto);

    List<FoodApiGd> getFoodShop(Page<FoodApiGd> page, FoodShopSearch foodShopSearch);

    List<FoodApiBaidu> getFoodShopBaidu(Page<FoodApiBaidu> page, FoodShopSearch foodShopSearch);

    List<FoodApiTx> getFoodShopTx(Page<FoodApiTx> page, FoodShopSearch foodShopSearch);

    List<Pie> getPieCount1();

    List<Pie> getPieCount2();

    List<Pie> getPieCount3();

    List<PieDouble> getPieCount4();

    List<PieDouble> getPieCount5();
    List<Pie> getPieCount6();
    List<PieDouble> getPieCount7();

    List<Pie> getBarCount1();

    List<Bar> getBarCount2();

    List<Map<String,String>> getSunCount1();

    List<Map<String,String>> getSunCount2();

    List<HeatMap> getHeatMap();

}
